.class final Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$b;
.super Ljava/lang/Object;
.source "RemoteSynchronizer.java"

# interfaces
.implements Les/y80;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# direct methods
.method constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Les/s80;Z)V
    .locals 4

    .line 1
    check-cast p1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->a()Ljava/util/HashMap;

    move-result-object p2

    monitor-enter p2

    .line 3
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->a()Ljava/util/HashMap;

    move-result-object v0

    iget-object v1, p1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object v1, v1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->path:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$e;

    if-nez v0, :cond_0

    .line 4
    monitor-exit p2

    return-void

    .line 5
    :cond_0
    iget-boolean v1, v0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$e;->a:Z

    const/4 v2, 0x1

    if-ne v1, v2, :cond_1

    const/4 v1, 0x0

    .line 6
    iput-object v1, v0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$e;->b:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;

    .line 7
    sget-object v0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->d:Ljava/util/Map;

    iget-object v3, p1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object v3, v3, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->path:Ljava/lang/String;

    invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iput-object v1, v0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->tmpPath:Ljava/lang/String;

    .line 8
    invoke-static {}, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->d()V

    goto :goto_0

    .line 9
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->a()Ljava/util/HashMap;

    move-result-object v0

    iget-object v1, p1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object v1, v1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->path:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 10
    sget-object v0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->d:Ljava/util/Map;

    iget-object v1, p1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object v1, v1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->path:Ljava/lang/String;

    invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 11
    invoke-static {}, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->d()V

    .line 12
    :goto_0
    invoke-static {}, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->a()Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->notify()V

    .line 13
    monitor-exit p2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 14
    invoke-virtual {p1}, Les/s80;->m()I

    move-result p2

    const/4 v0, 0x5

    if-ne p2, v0, :cond_3

    .line 15
    invoke-virtual {p1}, Les/s80;->l()Les/u80;

    move-result-object p2

    iget p2, p2, Les/u80;->a:I

    if-ne p2, v2, :cond_3

    .line 16
    sget-object p2, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->c:Ljava/util/Map;

    monitor-enter p2

    .line 17
    :try_start_1
    sget-object v0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->c:Ljava/util/Map;

    iget-object v1, p1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object v1, v1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->path:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/pop/view/utils/b;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    if-eqz v0, :cond_2

    .line 18
    new-instance v1, Ljava/io/File;

    iget-object p1, p1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object p1, p1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->cachePath:Ljava/lang/String;

    invoke-direct {v1, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->lastModified()J

    move-result-wide v1

    iput-wide v1, v0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->localFileLastModified:J

    .line 19
    invoke-static {}, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->e()V

    .line 20
    :cond_2
    monitor-exit p2

    goto :goto_1

    :catchall_0
    move-exception p1

    monitor-exit p2
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p1

    :cond_3
    :goto_1
    return-void

    :catchall_1
    move-exception p1

    .line 21
    :try_start_2
    monitor-exit p2
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    throw p1
.end method
